#ifndef _SQLITE3_INTERFACE_H_
#define _SQLITE3_INTERFACE_H_

#include "sqlite3.h"
/*typedef enum OPEN_METHOD
{
	open,
	open16,
	openv2
}open_method;

typedef struct METHOD_ARGS
{
  const char *filename;   
  sqlite3 **ppDb;       
  int flags;           
  const char *zVfs;     
}method_args;
*/
class sqlite3_interface
{
public:
	sqlite3_interface();
	~sqlite3_interface();
//	int open_database(open_method type);
	int open_database();
	int close_database();
	int add_one_sql_sentence(char *sql_sen,int type);
	int execute_all_sql(int type);

private:
	int ExecuteSqlSentence8(char *sql_sentence);
	int ExecuteSqlSentence9(char *sql_sentence);	


private:
//	int SetMethodAargs(method_args);
//	method_args m_MethodArgs;

	char *pdbfile;			/* Database filename (UTF-8) */
	sqlite3 *ppDb;			/* OUT: SQLite db handle */
	int	cur_len;
	char sql_buf[HIST_SAM_MAX_SENTENCE_BUF_LEN];
};
#endif


